package com.misoneism.fire.model
{
	import com.adobe.utils.StringUtil;
	import com.google.maps.LatLng;
	
	public class CFAIncident extends AbstractIncident
	{
		private var _rssGuid: uint;
		
		private var _street: String;
		
		private var _suburb: String;
		
		public function CFAIncident( rssGuid: uint, street: String, suburb: String, appliances: uint, whenUpdated: Date,
				whenCreated: Date, status: IncidentStatusEnum, size: IncidentSizeEnum, type: IncidentTypeEnum )
		{
			super( null, appliances, whenUpdated, whenCreated, status, size, type );
			
			_rssGuid = rssGuid;
			_street = street;
			if ( ( _street != null ) && ( StringUtil.trim( _street ).length == 0 ) )
			{
				_street = null;
			}
			_suburb = suburb;
		}
		
		
		/**
		 * The unique identifier of this incident.
		 */
		public function get rssGuid(  ): uint
		{
			return _rssGuid;
		}
		
		
		public function set location( value: LatLng ): void
		{
			_location = value;
		}
		
		
		/**
		 * The suburb this incident occured in.
		 */
		public function get suburb(  ): String
		{
			return _suburb;
		}
		
		
		/**
		 * The street this incident occured in.
		 */
		public function get street(  ): String
		{
			return _street;
		}
	}
}